<?php
/* 
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

session_start();

include_once '../model/DataBase.php';
include_once '../model/UsuarioClass.php';

//($nome, $cargo, $cpf, $telefoneFixo, $telefoneCelular, $perfil) 

$usuario = new UsuarioClass();

$id=$_GET['id'];
$status = $usuario->ativarDesativar($id);

MessageClass:: setAlterStateMessage($status);
//MessageClass::setUpdateMessage($status);

header('Location: ' . $_SERVER['HTTP_REFERER']);
